package com.ssm.blog.service.impl;

import com.ssm.blog.dao.UserDAO;
import com.ssm.blog.pojo.User;
import com.ssm.blog.service.UserService;
import com.ssm.blog.util.Constants;
import com.ssm.blog.util.Funcs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDAO userDAO;

    @Override
    public User getUserByUserName(String userName) {
        return userDAO.getUserByUserName(userName);
    }

    @Override
    public void addUser(User user) {
        userDAO.addUser(user);
    }
}
